#include<bits/stdc++.h>
using namespace std;
int main()
{
	string a, b;
	cin>>a>>b;
	string s, t;
	for(int i = 0;i < a.size();i++){
		if('0' <= a[i] && a[i] <= '9')
			s += a[i];
	}
	for(int i = 0;i < b.size();i++){
		if('0' <= b[i] && b[i] <= '9')
			t += b[i];
	}
	cout<<stoi(s)+stoi(t);
	return 0;
}
